import http from "../http";

function apply(params: any = {}) {
	return http.myRequest({
		url: '/server/nurse/apply',
		method: 'post',
		data: params,
	})
}
function update(params:any={}){
	return http.myRequest({
		url:'/server/nurse/update',
		method:'post',
		data:params,
	})
}
function create(params:any={}){
	return http.myRequest({
		url:'/server/nurse/create',
		method:'post',
		data:params,
	})
}
function info(params:any={}){
	return http.myRequest({
		url:'/server/nurse/info',
		method:'post',
		data:params
	})
}

function infoByUsername(params:any={}){
	return http.myRequest({
		url:'/server/nurse/infoByUsername',
		method:'post',
		data:params,
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		}
	})
}
function formalList(params:any={}){
	return http.myRequest({
		url:'/server/nurse/formalList',
		method:'post',
		data:params
	})
}

export default {
	apply,
	update,
	info,
	create,
	formalList,
	infoByUsername

}


